<?php include("page/slide/slide_image.php"); ?>
<div class="cover" style="margin-top:10px;">
    <div class="cover_topic"> Giới thiệu </div>
    <div class="cover_content">
    </div>
</div>

<div class="cover">
    <div class="cover_topic"> Tin tức tuyển sinh </div>
    <div class="cover_content">
    	<?php  
			$res = mysql_fetch_array(mysql_query("  SELECT id,topic,avatar,content_sum FROM news 
													WHERE category_id = '1' ORDER BY date DESC LIMIT 0,1 "));
			$query = mysql_query(" SELECT id,topic FROM news WHERE category_id = '1' ORDER BY date DESC LIMIT 1,3 ");
		?>
    	<div class="tinmoi"> 
        	<div class="tinmoi_img">
            	<a href="index.php?p=view_tt&tt=<?php echo $res['id'] ?>"> <img src="img/upload/<?php echo $res['avatar']; ?>" width="100px" height="100px" /> </a>
            </div>
            <div class="tinmoi_content">
	            <a href="index.php?p=view_tt&tt=<?php echo $res['id'] ?>"> <?php echo trim($res['topic']); ?> </a> <span> <?php echo $res['content_sum']; ?> </span>
            </div>
            <div class="clear"> </div>            
        </div>
        <div class="tinlienquan">
			<?php
                while($row = mysql_fetch_array($query))
				{
					$id = $row['id'];
                    echo " <li> <a href='index.php?p=view_tt&tt=$id'> <img src='img/pic/red-star.gif' /> ".$row['topic']." </a> </li> ";
				}
            ?>
        </div>
		<div class="clear"> </div>
    	
    </div>
</div>

<div class="cover">
    <div class="cover_topic"> Tài liệu ôn tập </div>
    <div class="cover_content">
    </div>
</div>

<div class="cover">
    <div class="cover_topic"> Đề thi các năm </div>
    <div class="cover_content">
    <?php
		$query1 = mysql_query(" SELECT * FROM exam WHERE name != '' LIMIT 0,3 ");
		while($row1 = mysql_fetch_array($query1))
			echo "<li style='margin:8px 0px 2px 10px;'> 
					<img src='img/pic/green-star.gif' /> <a href='http://docs.google.com/viewer?url=luyenthi73hungvuong.site50.net/img/upload/exam/".$row1['content']."'> ".$row1['name']." </a> 
				</li>";
	?>
    </div>
</div>
    
